

function [ xAxisStartPoint, xAxisEndPoint, xAxisBottom ] = getXAxisManuallyGUI( dicomImg, inputAxes, instructionText )

axes(inputAxes)
imshow(dicomImg)
hold on

set(instructionText, 'string', strcat('Failed to detect zero axis programmatically', ...
    ' You will be prompted to identify the bounds of the zero axis. Please click on', ...
    ' the left-most point of the zero axis'));

% Prompts user to select the left of the zero axis

xAxisStartPoint = getrect();

xAxisStartPoint = round(xAxisStartPoint(1));

% Prompts user to select the right of the zero axis
set(instructionText, 'string', 'Please click on the right-most point of the zero axis');

xAxisEndPoint = getrect();

xAxisEndPoint = round(xAxisEndPoint(1));

% Prompts user to select the bottom of the zero axis
set(instructionText, 'string', 'Please click on the bottom of the zero axis');

xAxisBottom = getrect();

xAxisBottom = round(xAxisBottom(2));

% Closes figure

end

